package com.ourteam.education.dao;
/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2019-09-22 15:15:04
  * Warning ! This file will be overwrite when regenerate !
  * 
 */
import org.apache.commons.lang.StringUtils;
public class CourseDefine implements java.io.Serializable {
    
    public CourseDefine() {
		super();
	}
	
		
		
		
		
		
	private long id;	
	
	/**
	 * Attribute id Be Seted Falg
	 */
	private boolean idSetted = false;
	
		/**
	 * Attribute id is Null Falg
	 */
	private boolean idNull = false;
	
	   
    /**
	 * Get id
	 * 
	 * @return long
	 */
	final public long getId(){
	    
				
		return id;
				
	}
	
	/**
	 * Set id
	 * 
	 * @param long
	 */
	final public void setId(long id ){
		
				
		this.id = id;
				
		this.idSetted = true;
		
				
				
		this.setIdNull(false);
				
				
	}
	
	/**
	 * Get id Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdSetted(){
		return this.idSetted;
	}
	
		
	/**
	 * Set id Null
	 * 
	 */
	final public void setIdNull(){
			
		this.idNull = true;
		
	}	
	
	final public void setIdNull(boolean aNullFlag){
			
		this.idNull = aNullFlag;
		
	}	
	
	final public boolean isIdNull(){
			
		return this.idNull;
		
	}
	
    	
	   
		
		
		
	private long courseTypeId;	
	
	/**
	 * Attribute courseTypeId Be Seted Falg
	 */
	private boolean courseTypeIdSetted = false;
	
		/**
	 * Attribute courseTypeId is Null Falg
	 */
	private boolean courseTypeIdNull = false;
	
	   
    /**
	 * Get courseTypeId
	 * 
	 * @return long
	 */
	final public long getCourseTypeId(){
	    
				
		return courseTypeId;
				
	}
	
	/**
	 * Set courseTypeId
	 * 
	 * @param long
	 */
	final public void setCourseTypeId(long courseTypeId ){
		
				
		this.courseTypeId = courseTypeId;
				
		this.courseTypeIdSetted = true;
		
				
				
		this.setCourseTypeIdNull(false);
				
				
	}
	
	/**
	 * Get courseTypeId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCourseTypeIdSetted(){
		return this.courseTypeIdSetted;
	}
	
		
	/**
	 * Set courseTypeId Null
	 * 
	 */
	final public void setCourseTypeIdNull(){
			
		this.courseTypeIdNull = true;
		
	}	
	
	final public void setCourseTypeIdNull(boolean aNullFlag){
			
		this.courseTypeIdNull = aNullFlag;
		
	}	
	
	final public boolean isCourseTypeIdNull(){
			
		return this.courseTypeIdNull;
		
	}
	
    	
	   
		
		
		
	private String courseName;	
	
	/**
	 * Attribute courseName Be Seted Falg
	 */
	private boolean courseNameSetted = false;
	
		/**
	 * Attribute courseName is Null Falg
	 */
	private boolean courseNameNull = false;
	
	   
    /**
	 * Get courseName
	 * 
	 * @return String
	 */
	final public String getCourseName(){
	    
				
		if(isCourseNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(courseName);
		}
				
	}
	
	/**
	 * Set courseName
	 * 
	 * @param String
	 */
	final public void setCourseName(String courseName ){
		
				
		this.courseName = StringUtils.trim(courseName);
				
		this.courseNameSetted = true;
		
				
				
		this.setCourseNameNull(this.courseName == null);
				
				
	}
	
	/**
	 * Get courseName Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCourseNameSetted(){
		return this.courseNameSetted;
	}
	
		
	/**
	 * Set courseName Null
	 * 
	 */
	final public void setCourseNameNull(){
			
		this.courseNameNull = true;
		
	}	
	
	final public void setCourseNameNull(boolean aNullFlag){
			
		this.courseNameNull = aNullFlag;
		
	}	
	
	final public boolean isCourseNameNull(){
			
		return this.courseNameNull;
		
	}
	
    	
	   
		
		
		
	private String schoolYear;	
	
	/**
	 * Attribute schoolYear Be Seted Falg
	 */
	private boolean schoolYearSetted = false;
	
		/**
	 * Attribute schoolYear is Null Falg
	 */
	private boolean schoolYearNull = false;
	
	   
    /**
	 * Get schoolYear
	 * 
	 * @return String
	 */
	final public String getSchoolYear(){
	    
				
		if(isSchoolYearNull()){
			return null;
		}
		else{
			return StringUtils.trim(schoolYear);
		}
				
	}
	
	/**
	 * Set schoolYear
	 * 
	 * @param String
	 */
	final public void setSchoolYear(String schoolYear ){
		
				
		this.schoolYear = StringUtils.trim(schoolYear);
				
		this.schoolYearSetted = true;
		
				
				
		this.setSchoolYearNull(this.schoolYear == null);
				
				
	}
	
	/**
	 * Get schoolYear Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isSchoolYearSetted(){
		return this.schoolYearSetted;
	}
	
		
	/**
	 * Set schoolYear Null
	 * 
	 */
	final public void setSchoolYearNull(){
			
		this.schoolYearNull = true;
		
	}	
	
	final public void setSchoolYearNull(boolean aNullFlag){
			
		this.schoolYearNull = aNullFlag;
		
	}	
	
	final public boolean isSchoolYearNull(){
			
		return this.schoolYearNull;
		
	}
	
    	
	   
		
		
		
	private String teachingMode;	
	
	/**
	 * Attribute teachingMode Be Seted Falg
	 */
	private boolean teachingModeSetted = false;
	
		/**
	 * Attribute teachingMode is Null Falg
	 */
	private boolean teachingModeNull = false;
	
	   
    /**
	 * Get teachingMode
	 * 
	 * @return String
	 */
	final public String getTeachingMode(){
	    
				
		if(isTeachingModeNull()){
			return null;
		}
		else{
			return StringUtils.trim(teachingMode);
		}
				
	}
	
	/**
	 * Set teachingMode
	 * 
	 * @param String
	 */
	final public void setTeachingMode(String teachingMode ){
		
				
		this.teachingMode = StringUtils.trim(teachingMode);
				
		this.teachingModeSetted = true;
		
				
				
		this.setTeachingModeNull(this.teachingMode == null);
				
				
	}
	
	/**
	 * Get teachingMode Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isTeachingModeSetted(){
		return this.teachingModeSetted;
	}
	
		
	/**
	 * Set teachingMode Null
	 * 
	 */
	final public void setTeachingModeNull(){
			
		this.teachingModeNull = true;
		
	}	
	
	final public void setTeachingModeNull(boolean aNullFlag){
			
		this.teachingModeNull = aNullFlag;
		
	}	
	
	final public boolean isTeachingModeNull(){
			
		return this.teachingModeNull;
		
	}
	
    	
	   
		
		
		
	private String chargingMode;	
	
	/**
	 * Attribute chargingMode Be Seted Falg
	 */
	private boolean chargingModeSetted = false;
	
		/**
	 * Attribute chargingMode is Null Falg
	 */
	private boolean chargingModeNull = false;
	
	   
    /**
	 * Get chargingMode
	 * 
	 * @return String
	 */
	final public String getChargingMode(){
	    
				
		if(isChargingModeNull()){
			return null;
		}
		else{
			return StringUtils.trim(chargingMode);
		}
				
	}
	
	/**
	 * Set chargingMode
	 * 
	 * @param String
	 */
	final public void setChargingMode(String chargingMode ){
		
				
		this.chargingMode = StringUtils.trim(chargingMode);
				
		this.chargingModeSetted = true;
		
				
				
		this.setChargingModeNull(this.chargingMode == null);
				
				
	}
	
	/**
	 * Get chargingMode Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isChargingModeSetted(){
		return this.chargingModeSetted;
	}
	
		
	/**
	 * Set chargingMode Null
	 * 
	 */
	final public void setChargingModeNull(){
			
		this.chargingModeNull = true;
		
	}	
	
	final public void setChargingModeNull(boolean aNullFlag){
			
		this.chargingModeNull = aNullFlag;
		
	}	
	
	final public boolean isChargingModeNull(){
			
		return this.chargingModeNull;
		
	}
	
    	
	   
		
		
		
	private String status;	
	
	/**
	 * Attribute status Be Seted Falg
	 */
	private boolean statusSetted = false;
	
		/**
	 * Attribute status is Null Falg
	 */
	private boolean statusNull = false;
	
	   
    /**
	 * Get status
	 * 
	 * @return String
	 */
	final public String getStatus(){
	    
				
		if(isStatusNull()){
			return null;
		}
		else{
			return StringUtils.trim(status);
		}
				
	}
	
	/**
	 * Set status
	 * 
	 * @param String
	 */
	final public void setStatus(String status ){
		
				
		this.status = StringUtils.trim(status);
				
		this.statusSetted = true;
		
				
				
		this.setStatusNull(this.status == null);
				
				
	}
	
	/**
	 * Get status Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isStatusSetted(){
		return this.statusSetted;
	}
	
		
	/**
	 * Set status Null
	 * 
	 */
	final public void setStatusNull(){
			
		this.statusNull = true;
		
	}	
	
	final public void setStatusNull(boolean aNullFlag){
			
		this.statusNull = aNullFlag;
		
	}	
	
	final public boolean isStatusNull(){
			
		return this.statusNull;
		
	}
	
    	
	   
		
		
		
	private String remarks;	
	
	/**
	 * Attribute remarks Be Seted Falg
	 */
	private boolean remarksSetted = false;
	
		/**
	 * Attribute remarks is Null Falg
	 */
	private boolean remarksNull = false;
	
	   
    /**
	 * Get remarks
	 * 
	 * @return String
	 */
	final public String getRemarks(){
	    
				
		if(isRemarksNull()){
			return null;
		}
		else{
			return StringUtils.trim(remarks);
		}
				
	}
	
	/**
	 * Set remarks
	 * 
	 * @param String
	 */
	final public void setRemarks(String remarks ){
		
				
		this.remarks = StringUtils.trim(remarks);
				
		this.remarksSetted = true;
		
				
				
		this.setRemarksNull(this.remarks == null);
				
				
	}
	
	/**
	 * Get remarks Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isRemarksSetted(){
		return this.remarksSetted;
	}
	
		
	/**
	 * Set remarks Null
	 * 
	 */
	final public void setRemarksNull(){
			
		this.remarksNull = true;
		
	}	
	
	final public void setRemarksNull(boolean aNullFlag){
			
		this.remarksNull = aNullFlag;
		
	}	
	
	final public boolean isRemarksNull(){
			
		return this.remarksNull;
		
	}
	
    	
	   
		
		
		
	private int deleteFlag;	
	
	/**
	 * Attribute deleteFlag Be Seted Falg
	 */
	private boolean deleteFlagSetted = false;
	
		/**
	 * Attribute deleteFlag is Null Falg
	 */
	private boolean deleteFlagNull = false;
	
	   
    /**
	 * Get deleteFlag
	 * 
	 * @return int
	 */
	final public int getDeleteFlag(){
	    
				
		return deleteFlag;
				
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @param int
	 */
	final public void setDeleteFlag(int deleteFlag ){
		
				
		this.deleteFlag = deleteFlag;
				
		this.deleteFlagSetted = true;
		
				
				
		this.setDeleteFlagNull(false);
				
				
	}
	
	/**
	 * Get deleteFlag Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isDeleteFlagSetted(){
		return this.deleteFlagSetted;
	}
	
		
	/**
	 * Set deleteFlag Null
	 * 
	 */
	final public void setDeleteFlagNull(){
			
		this.deleteFlagNull = true;
		
	}	
	
	final public void setDeleteFlagNull(boolean aNullFlag){
			
		this.deleteFlagNull = aNullFlag;
		
	}	
	
	final public boolean isDeleteFlagNull(){
			
		return this.deleteFlagNull;
		
	}
	
    	
	   
		
						
		
	private String courseTypeName;	
	
	/**
	 * Attribute courseTypeName Be Seted Falg
	 */
	private boolean courseTypeNameSetted = false;
	
		/**
	 * Attribute courseTypeName is Null Falg
	 */
	private boolean courseTypeNameNull = false;
	
	   
    /**
	 * Get courseTypeName
	 * 
	 * @return String
	 */
	final public String getCourseTypeName(){
	    
				
		if(isCourseTypeNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(courseTypeName);
		}
				
	}
	
	/**
	 * Set courseTypeName
	 * 
	 * @param String
	 */
	final public void setCourseTypeName(String courseTypeName ){
		
				
		this.courseTypeName = StringUtils.trim(courseTypeName);
				
		this.courseTypeNameSetted = true;
		
				
				
		this.setCourseTypeNameNull(this.courseTypeName == null);
				
				
	}
	
	/**
	 * Get courseTypeName Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCourseTypeNameSetted(){
		return this.courseTypeNameSetted;
	}
	
		
	/**
	 * Set courseTypeName Null
	 * 
	 */
	final public void setCourseTypeNameNull(){
			
		this.courseTypeNameNull = true;
		
	}	
	
	final public void setCourseTypeNameNull(boolean aNullFlag){
			
		this.courseTypeNameNull = aNullFlag;
		
	}	
	
	final public boolean isCourseTypeNameNull(){
			
		return this.courseTypeNameNull;
		
	}
	
    	
		
				
		
		
	
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
				
				
		result = prime * result + (int) (getId() ^ (getId() >>> 32));
						
		return result;
	}
	
	public boolean equals(Object obj) {
	
		if (obj == null){
			return false;
		}
		if ((obj instanceof CourseDefine) == false){
			return false;
		}
		CourseDefine other = (CourseDefine) obj;
		
				
				
		if (getId() != other.getId()){
			return false;
		}
						
		return true;
	
	}	
	
	public String toString(){
	    
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("[");
		
		        
		buffer.append("id=");
		buffer.append(this.id);
		        
		buffer.append("courseTypeId=");
		buffer.append(this.courseTypeId);
		        
		buffer.append("courseName=");
		buffer.append(this.courseName);
		        
		buffer.append("schoolYear=");
		buffer.append(this.schoolYear);
		        
		buffer.append("teachingMode=");
		buffer.append(this.teachingMode);
		        
		buffer.append("chargingMode=");
		buffer.append(this.chargingMode);
		        
		buffer.append("status=");
		buffer.append(this.status);
		        
		buffer.append("remarks=");
		buffer.append(this.remarks);
		        
		buffer.append("courseTypeName=");
		buffer.append(this.courseTypeName);
		        
		buffer.append("deleteFlag=");
		buffer.append(this.deleteFlag);
				
		buffer.append("]");
		
		return buffer.toString();
	}
	
	
}